
import junit.framework.TestCase;

import org.junit.Test;

import GoldenEagle.Bill;
import GoldenEagle.Menu;
import GoldenEagle.MenuSystem;
import GoldenEagle.Order;


public class TestBill extends TestCase {
	
	@Test
	public void testBill() {
		MenuSystem ms = new MenuSystem(true);
		Order o = ms.addOrder(new String[]{"2","10","4","George","1","2"});;
		Bill bill = new Bill(o);
		System.out.println("The Total Price :"+o.totalPrice());
		System.out.println("The Average(1 of "+o.getNumOfCustomer()+"): "+bill.getPayAverage());
		
		bill.display();
		assertEquals((int)bill.getPayAverage(),29);
		
	}

}
